package com.foreknow.practice.lala;

import java.util.Scanner;

public class Test6 {
    //4.要求输入月份，判断该月所处的季节并输出季节.
    public static void main(String[] args) {
        //定义月份
        int month ;
        //定义季节
        String season;
        Scanner input = new Scanner(System.in);
        System.out.println("请输入月份");
        month = input.nextInt();
        if (month>=1&&month<=3){
            System.out.println("是春季");
        }else if (month>=4&&month<=6){
            System.out.println("是夏季");
        }else if (month>=7&&month<=9){
            System.out.println("是秋季");
        }else if (month>=8&&month<=12){
            System.out.println("是冬季");

        }
    }
}
